package com.googlecode.q2xml.util;

import java.io.IOException;
import java.util.Properties;

public class PropertiesReader
{
	static Properties properties = new Properties();
	
	public static String get(String propertyName, String defValue)
	{
		return properties.getProperty(propertyName, defValue);
	}
	
	public static String get(String propertyName)
	{
		return properties.getProperty(propertyName);
	}
	
	static
	{
		try
		{
			properties.load(PropertiesReader.class.getClassLoader().getResourceAsStream("appConfig.properties"));
		} catch (IOException e)
		{
			e.printStackTrace();
		}
	}
}
